package com.yujiahao;


import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

/**
 * @Description: Kinesis 消费者，测试用
 * @Author: yujiahao
 * @Date: 2023/6/15 13:37
 * @Version: 1.0
 */

public class FlinkKinesisConsumer {
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
      env.addSource(KinesisUtil.getKinesisSource("test-kds-api")).print("这是一个消费者");
      env.execute();
    }
}
